<?php $this->setLayout('layout'.DS.'center.phtml');
$this->startBlock();
?>
<!-- 会员注册 -->
<div class="public_width userreg">
    <form id="changepassword_form" action="<?php echo $this->getUrl(NULL,'changePasswordPost')?>" method="post">
        <h2>修改密码</h2>
        <ul><label>原始密码: </label><input type="password" id="oldpassword" name="oldpassword" maxlength="30" size="20" /></ul>
        <ul><label>新 密 码: </label><input type="password" id="newpassword" name="newpassword"  maxlength="30" size="20" /></ul>
        <ul><label>确认密码: </label><input type="password" id="repassword" name="repassword"  maxlength="30" size="20" /></ul>
        <ul><label>验 证 码: </label><input type="text" id="validatecode" name="validatecode" maxlength="20" size="20" /><?php echo $this->validateCodeImage()?></ul>
        <ul><label>&nbsp;</label><input type="hidden" name="check" value="yes" /><button class="button" type="submit">提交</button></ul>
    </form>
</div>
<script language="javascript" type="text/javascript">
$(function(){
    $('#changepassword_form').validate({
        rules:{
            oldpassword:{required:true, minlength:6},
            newpassword:{required:true, minlength:6},
            repassword:{required:true, equalTo:'#newpassword'},
            validatecode:{required:true}
        }
    });
});
</script>
<?php $this->endBlock();


